<template>
	<!-- 户籍详情 -->
	<view class="building-add">
		<view class="add-content">
			<view class="add-item">
				<view class="item-left">户号<text>*</text></view>
				<view class="item-right">{{ info.familyCode|| '暂无资料' }}</view>
			</view>
			<view class="add-item">
				<view class="item-left">户别<text>*</text></view>
				<view class="item-right">{{ info.type }}</view>
			</view>
			<view class="add-item">
				<view class="item-left">户籍人口<text>*</text></view>
				<view class="item-right">{{ info.familyMemberNum }}人</view>
			</view>
			<view class="add-item">
				<view class="item-left">户主姓名<text>*</text></view>
				<view class="item-right">{{ info.familyHolderName }}</view>
			</view>
			<view class="add-item">
				<view class="item-left">户籍详址</view>
				<view class="item-right">{{ info.familyAddress }}</view>
			</view>
			<!-- <view class="add-item">
				<view class="item-left">门牌号</view>
				<view class="item-right">{{info.familyCode}}</view>
			</view> -->
		</view>
		<view class="add-con2">
			<view class="add-con2-head">户籍人员信息</view>
			<view class="add-con2-content">
				<view class="add-con2-item" @click="handleGoPopulationInfo">
					<view class="add-con2-item1">{{ info.familyHolderName }}<text>不便分类的其他从业人员</text></view>
					<view class="add-con2-item2">身份证号：<text>暂无</text></view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data() {
			return{
				info:{}
			}
		},
		onLoad() {
			this.info = JSON.parse(uni.getStorageSync('info'))
			// console.log(this.info)
		},
		onNavigationBarButtonTap() {
			uni.navigateTo({
				url:'../Domicile-edit/Domicile-edit'
			})
		},
		methods:{
			handleGoPopulationInfo() {
				uni.navigateTo({
					url:'../../Population/Population-info/Population-info'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.building-add{
		background-color: #f5f6f7;
		min-height: 100vh;
		.add-head{
			display: flex;
			justify-content: space-between;
			align-items: center;
			background-color: #fff;
			height: 180rpx;
			padding: 20rpx;
			.head-left{
				.head-left-1{
					color: #000;
					font-size: 28rpx;
					font-weight: 600;
				}
				.head-left-2{
					color: #999;
					font-size: 24rpx;
					margin-top: 20rpx;
				}
			}
			.head-right{
				background-color: #999;
				display: flex;
				justify-content: center;
				align-items: center;
				border-radius: 10rpx;
				width: 150rpx;
				height: 150rpx;
				image{
					width: 50%;
					height: 50%;
				}
			}
		}
		.add-content{
			margin-top: 20rpx;
			padding-bottom: 110rpx;
			.add-item{
				display: flex;
				justify-content: space-between;
				align-items: center;
				padding: 20rpx;
				background-color: #fff;
				border-bottom: 1px solid #f4f1f1;
				.item-left{
					color: #333;
					font-size: 28rpx;
					min-width: 100rpx;
					text{
						color: #DD524D;
					}
				}
				.item-right{
					font-size: 26rpx;
					color: #999;
					input{
						text-align: right;
					}
					textarea{
						
					}
				}
			}
		}
		.btn{
			width: 100%;
			height: 110rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			color: #fff;
			font-size: 30rpx;
			background-color: #f4f1f1;
			position: fixed;
			bottom: 0;
			left: 0;
			border-top: 1px solid #999;
			.btn-1{
				background-color: #007AFF;
				display: flex;
				justify-content: center;
				align-items: center;
				width: 600rpx;
				height: 80rpx;
				border-radius: 40rpx;
			}
		}
		.add-con2{
			width: 100%;
			border-radius: 10rpx;
			.add-con2-head{
				background-image: linear-gradient(to right,#e5edfb,#fff);
				padding: 20rpx;
			}
			.add-con2-content{
				padding: 20rpx;
				background-color: #fff;
				.add-con2-item{
					margin-bottom: 20rpx;
					width: 100%;
					border-radius: 10rpx;
					background-color: #ecedfd;
					padding: 20rpx;
					.add-con2-item1{
						margin-bottom: 15rpx;
						color: #000;
						font-size: 28rpx;
						font-weight: 600;
						text{
							display: inline-block;
							margin-left: 30rpx;
							color: #007AFF;
							font-size: 25rpx;
						}
					}
					.add-con2-item2{
						color: #999;
						font-size: 25rpx;
						text{
							display: inline-block;
							margin-left: 30rpx;
						}
					}
				}
			}
		}
	}
</style>
